/* 
	CBarWidget	
	2007-12-18, Sureone		
	*/

#pragma once
#include "common.h"
#include "Model.h"
#include "DisplayManage.h"
#include "Widget.h"
#include "Container.h"
#include "CBackgroundWidget.h"
#include "CommonListWidget.h"

class DLL_EXP CBarWidget : public CCommonListWidget
{
public:
	
	CBarWidget(void);
	CObjList itemList;
	bool m_bEnableGhost;
	virtual ~CBarWidget(void);
	virtual bool AddItem(CWidget* pWidget,int nIndex=-1);
	virtual bool HandleMouseEvent(int evCode, WPoint* ptScreen, int param2);
public:
	virtual int CustDraw(CFrameSurface* pSurface);
	virtual void HandleModelEvent(ModelEvent* pEvent);

};
